package com.eat.fish_service.entity.Dao;

import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.Id;

/**
 * <p>
 * 
 * </p>
 *
 * @author LWB
 * @since 2022-03-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="IpAndPort对象", description="")
public class IpAndPort implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "鱼缸的id")
    @TableId(value = "aquarium_id")
    @Id
    private Long aquariumId;

    @ApiModelProperty(value = "鱼缸的ip地址")
    private String ip;

    @ApiModelProperty(value = "鱼缸的端口号")
    private Integer port;

    @ApiModelProperty(value = "0：未删除，1：已删除")
    @TableLogic
    private Boolean isDeleted;

    @ApiModelProperty(value = "0：鱼缸系统的服务端未启动，1：已启动")
    private Integer isOpened;

    @ApiModelProperty(value = "该鱼缸是否被服务器连接？0未连接，1已连接")
    private Integer isConnected;


}
